// 自动生成模板PmsSpuImages
package biz

import "github.com/go-kratos/kratos/v2/log"

// pmsSpuImages表 结构体  PmsSpuImages
type PmsSpuImages struct {
	Id         *int    `json:"id" form:"id" gorm:"primarykey;comment:id;column:id;size:19;"`          //id
	SpuId      *int    `json:"spuId" form:"spuId" gorm:"comment:spu_id;column:spu_id;size:19;"`       //spu_id
	ImgName    *string `json:"imgName" form:"imgName" gorm:"comment:图片名;column:img_name;size:200;"`   //图片名
	ImgUrl     *string `json:"imgUrl" form:"imgUrl" gorm:"comment:图片地址;column:img_url;size:255;"`     //图片地址
	ImgSort    *int    `json:"imgSort" form:"imgSort" gorm:"comment:顺序;column:img_sort;size:10;"`     //顺序
	DefaultImg *bool   `json:"defaultImg" form:"defaultImg" gorm:"comment:是否默认图;column:default_img;"` //是否默认图
}

// TableName pmsSpuImages表 PmsSpuImages自定义表名 pms_spu_images
func (PmsSpuImages) TableName() string {
	return "pms_spu_images"
}

type PmsSpuImagesRepo interface {
}

type PmsSpuImagesUsecase struct {
	repo PmsSpuImagesRepo
	log  *log.Helper
}

func NewPmsSpuImagesUsecase(repo GreeterRepo, logger log.Logger) *PmsSpuImagesUsecase {
	return &PmsSpuImagesUsecase{repo: repo, log: log.NewHelper(logger)}
}
